<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib uri="http://shiro.apache.org/tags" prefix="shiro" %>
<html>
<head>
    <title>招聘计划</title>
    <%@ include file="/WEB-INF/views/commons/common.jsp"%>
    <script type="text/javascript" src="/static/js/system/recruit.js"></script>
</head>
<body>
    <%--数据表格--%>
    <table id="recruit_datagrid" fit="true"></table>

    <%--表格工具栏--%>
    <div id="tb">
        <a href="JavaScript:;" class="easyui-linkbutton" data-options="iconCls:'icon-add',plain:true" data-cmd="add">添加</a>
        <a href="JavaScript:;" class="easyui-linkbutton" data-options="iconCls:'icon-edit',plain:true" data-cmd="edit">编辑</a>
        <a href="JavaScript:;" class="easyui-linkbutton" data-options="iconCls:'icon-reload',plain:true" data-cmd="reload">刷新</a>
        <shiro:hasRole name="HR_MAG">
            <a href="JavaScript:;" class="easyui-linkbutton" data-options="iconCls:'icon-tip',plain:true" data-cmd="audit">审核</a>
        </shiro:hasRole>
        <div>
            开始日期:<input class="easyui-datebox" name="beginTime" id="beginTime"/>
            结束日期:<input class="easyui-datebox" name="endTime" id="endTime"/>
            <a href="javascript:;" class="easyui-linkbutton" data-cmd="searchT" data-options="iconCls:'icon-search',plain:true">查询</a>
        </div>
    </div>

    <%--添加和编辑弹窗--%>
    <div id="edit_dialog" align="center" data-options="title:'My Dialog',modal:true,
			toolbar:[{
				text:'新增',
				iconCls:'icon-add',
				handler:function(){alert('都是假的')}
			},{
				text:'删除',
				iconCls:'icon-remove',
				handler:function(){alert('都是假的')}
			},{
				text:'保存',
				iconCls:'icon-save',
				handler:function(){alert('都是假的')}
			},{
				text:'撤销',
				iconCls:'icon-back',
				handler:function(){alert('都是假的')}
			}]">

                <form id="edit_form" method="post">
                    <input type="hidden" id="staffId" name="id">
                    <table align="center" style="margin-top: 20px; border-collapse:separate; border-spacing:0px 10px;">
                        <div>
                            <td>计划类别:</td>
                            <td><input class="easyui-combobox" name="planType.id" data-options="
                                required:true,
                                editable:false,
                                url:'/dictionaryItem/getDictionaryItemByParentName.do?content='+'计划类别',
                                valueField: 'id',
                                textField: 'name',
                                panelHeight:'auto'"/>
                            </td>
                            <td>计划名称:</td>
                            <td><input class="easyui-textbox" data-options="required:true" name="plan"/></td>
                            <td>制定日期:</td>
                            <td><input class="easyui-datebox" name="draftTime" data-options="required:true"/></td>
                        </div>

                        <div>
                        <tr>
                            <td>招聘职位:</td>
                            <td><input class="easyui-textbox" name="recruitItems[0].job"/></td>
                            <td>人数:</td>
                            <td><input class="easyui-textbox" name="recruitItems[0].recruitNumber"/></td>
                        </tr>
                        <tr>
                            <td>学历要求:</td>
                            <td><input  class="easyui-combobox" name="recruitItems[0].educationId.id" data-options="
                                editable:false,
                                url:'/dictionaryItem/getDictionaryItemByParentName.do?content='+'学历',
                                valueField: 'id',
                                textField: 'name',
                                panelHeight:'auto'
                              " /></td>
                            <td>聘用形式:</td>
                            <td><input class="easyui-combobox" name="recruitItems[0].engageId.id"data-options="
                                 editable:false,
                                 url:'/dictionaryItem/getDictionaryItemByParentName.do?content=' + '聘用类型',
                                 valueField:'id',
                                 textField:'name',
                                 panelHeight:'auto'"/></td>
                        <tr>
                            <td>薪资情况:</td>
                            <td><input class="easyui-combobox" name="recruitItems[0].recruitSalaryId.id" data-options="
                                 editable:false,
                                 url:'/dictionaryItem/getDictionaryItemByParentName.do?content='+'薪资要求',
                                 valueField: 'id',
                                 textField: 'name',
                                 panelHeight:'auto'
                                 " />
                            </td>
                            <td>招聘方式:</td>
                            <td><input class="easyui-combobox" name="recruitItems[0].engageId.id" data-options="
                                 editable:false,
                                 url:'/dictionaryItem/getDictionaryItemByParentName.do?content=' + '招聘方式',
                                 valueField:'id',
                                 textField:'name',
                                 panelHeight:'auto'"/>
                            </td>
                        </tr>
                        <tr>
                            <td>技能要求:</td>
                            <td><input class="easyui-textbox" name="recruitItems[0].recruitRequired"/></td>
                            <td>备注:</td>
                            <td><input class="easyui-textbox" name="recruitItems[0].remark"/></td>
                        </tr>
                        </div>
                        <div></div>
                    </table>
                </form>
            </div>
        </div>
    </div>

    <%--弹窗底部按钮--%>
    </div>
    <div id="bb">
        <a href="JavaScript:;" class="easyui-linkbutton" iconCls="icon-save" data-cmd="save">保存</a>
        <a href="JavaScript:;" class="easyui-linkbutton" iconCls="icon-cancel" data-cmd="cancel">关闭</a>
    </div>
</body>
</html>
